package cn.com.connext.scrm.domain.master;

import com.connext.common.domain.UUIDDomain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/***
 * DWA用户上课信息表
 * @author WANG633
 */
@Entity
@Table(name = "dwa_user_lesson_info")
public class DwaUserLessonInfo implements UUIDDomain, Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    @Column(name = "user_id",nullable = false,length = 50)
    private String userId;

    @Column(name = "lesson_id",nullable = false,length = 50)
    private String lessonId;

    @Column(name = "sign_up_way",length = 20)
    private String signUpWay;

    @Column(name = "pay_way",length = 50)
    private String payWay;

    @Column(name = "is_invoice")
    private boolean isInvoice;

    @Column(name = "invoice_information",length = 200)
    private String invoiceInformation;

    @Column(name = "score")
    private float score;

    @Column(name = "is_pass")
    private boolean pass;

    @Column(name = "is_mail_certificates")
    private boolean mailCertificates;

    @Column(name = "credential_no",length = 20)
    private String credentialNo;

    @Column(name = "express_name",length = 50)
    private String expressName;

    @Column(name = "express_mobile",length = 20)
    private String expressMobile;

    @Column(name="province",length = 50)
    private String province;

    @Column(name="city",length = 50)
    private String city;

    @Column(name="district",length = 50)
    private String district;

    @Column(name = "express_address",length = 200)
    private String expressAddress;

    @Column(name = "is_free_use")
    private boolean freeUse;

    @Column(name = "is_sign")
    private boolean sign;

    @Column(name = "score_time")
    private Date scoreTime;

    @Column(name = "finish_quiz")
    private int finishQuiz;

    @Column(name = "sync_flag")
    private int syncFlag=0;

    @Column(name = "is_delete")
    private boolean deleted=false;

    @Column(name="create_time")
    private Date createTime;

    @Column(name="create_user",length = 50)
    private String  createUser;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "update_user",length = 50)
    private String updateUser;

    @Column(name="createdIndex",nullable = false)
    private Long createdIndex;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getLessonId() {
        return lessonId;
    }

    public void setLessonId(String lessonId) {
        this.lessonId = lessonId;
    }

    public String getSignUpWay() {
        return signUpWay;
    }

    public void setSignUpWay(String signUpWay) {
        this.signUpWay = signUpWay;
    }

    public String getPayWay() {
        return payWay;
    }

    public void setPayWay(String payWay) {
        this.payWay = payWay;
    }

    public boolean isInvoice() {
        return isInvoice;
    }

    public void setInvoice(boolean invoice) {
        isInvoice = invoice;
    }

    public String getInvoiceInformation() {
        return invoiceInformation;
    }

    public void setInvoiceInformation(String invoiceInformation) {
        this.invoiceInformation = invoiceInformation;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public boolean isPass() {
        return pass;
    }

    public void setPass(boolean pass) {
        this.pass = pass;
    }

    public boolean isMailCertificates() {
        return mailCertificates;
    }

    public void setMailCertificates(boolean mailCertificates) {
        this.mailCertificates = mailCertificates;
    }

    public String getCredentialNo() {
        return credentialNo;
    }

    public void setCredentialNo(String credentialNo) {
        this.credentialNo = credentialNo;
    }

    public String getExpressName() {
        return expressName;
    }

    public void setExpressName(String expressName) {
        this.expressName = expressName;
    }

    public String getExpressMobile() {
        return expressMobile;
    }

    public void setExpressMobile(String expressMobile) {
        this.expressMobile = expressMobile;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getExpressAddress() {
        return expressAddress;
    }

    public void setExpressAddress(String expressAddress) {
        this.expressAddress = expressAddress;
    }

    public boolean isFreeUse() {
        return freeUse;
    }

    public void setFreeUse(boolean freeUse) {
        this.freeUse = freeUse;
    }

    public boolean isSign() {
        return sign;
    }

    public void setSign(boolean sign) {
        this.sign = sign;
    }

    public Date getScoreTime() {
        return scoreTime;
    }

    public void setScoreTime(Date scoreTime) {
        this.scoreTime = scoreTime;
    }

    public int getFinishQuiz() {
        return finishQuiz;
    }

    public void setFinishQuiz(int finishQuiz) {
        this.finishQuiz = finishQuiz;
    }

    public int getSyncFlag() {
        return syncFlag;
    }

    public void setSyncFlag(int syncFla) {
        this.syncFlag = syncFla;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Long getCreatedIndex() {
        return createdIndex;
    }

    public void setCreatedIndex(Long createdIndex) {
        this.createdIndex = createdIndex;
    }

    @Override
    public String toString() {
        return "DwaUserLessonInfo{" +
            "id='" + id + '\'' +
            ", userId='" + userId + '\'' +
            ", lessonId='" + lessonId + '\'' +
            ", signUpWay='" + signUpWay + '\'' +
            ", payWay='" + payWay + '\'' +
            ", isInvoice=" + isInvoice +
            ", invoiceInformation='" + invoiceInformation + '\'' +
            ", score=" + score +
            ", pass=" + pass +
            ", mailCertificates=" + mailCertificates +
            ", credentialNo='" + credentialNo + '\'' +
            ", expressName='" + expressName + '\'' +
            ", expressMobile='" + expressMobile + '\'' +
            ", province='" + province + '\'' +
            ", city='" + city + '\'' +
            ", district='" + district + '\'' +
            ", expressAddress='" + expressAddress + '\'' +
            ", freeUse=" + freeUse +
            ", sign=" + sign +
            ", scoreTime=" + scoreTime +
            ", finishQuiz=" + finishQuiz +
            ", syncFla=" + sign +
            ", delete=" + deleted +
            ", createTime=" + createTime +
            ", createUser='" + createUser + '\'' +
            ", updateTime=" + updateTime +
            ", updateUser='" + updateUser + '\'' +
            ", createdIndex=" + createdIndex +
            '}';
    }
}
